package com.ys.goodstype.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ys.goodstype.service.GoodsTypeService;
import com.ys.pojo.TblGoodstype;
import com.ys.pojo.TblSupplier;
import com.ys.supplier.service.SupplierService;

@Controller
@RequestMapping("/goodsType")
public class GoodsTypeAction {
	@Autowired
	private GoodsTypeService goodsTypeService;
	@Autowired
	private SupplierService supplierService;
	
	
	//商品类别
	@RequestMapping("/goodsType_list")
	public String getGoodsTypeList(TblGoodstype goodsType,Model model){
		List<TblGoodstype> goodsTypeList = goodsTypeService.getGoodsTypeList(goodsType);
		model.addAttribute("goodsTypeList", goodsTypeList);
		return "/jsp/bootstrap/right/goodsType.jsp";
	}

}
